package com.app.newiptv.utils;

import android.content.Context;

import com.app.newiptv.base.MyApplication;

public class Sputil {


    public static void putValue(String key, String value) {
        MyApplication.mApp.getSharedPreferences("play_history", Context.MODE_PRIVATE).edit().putString(key, value).commit();

    }

    public static String getValue(String key, String defaultValue) {

        return MyApplication.mApp.getSharedPreferences("play_history", Context.MODE_PRIVATE).getString(key, defaultValue);

    }
}
